﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DullBoard.Model
{
    public class Post
    {
        public long Id { get; set; }
        public User Author { get; set; }
        public List<PostDetail> Detail { get; set; }
        public DateTime Date { get; set; }
        public int Ordinal { get; set; }
        public bool BlizzardPost { get; set; }

        public override string ToString()
        {
            if (BlizzardPost)
            {
                return "[Blue] " + Author.Name;
            }
            else
            {
                return Author.Name;
            }
        }
    }
}
